<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


	
			$emptyValidator = array('isEmpty' => null);
			
			
			$validatorData = array(
				 'user' => array(
					  'value' => $_POST['user'],
					  'validators' => $emptyValidator,
					  'errors' => array('isEmpty' => 'Username can not be empty')
					),
				 'pass' => array(
 					  'value' => $_POST['user'],
					  'validators' => $emptyValidator
				)
			);
			
			
			$result = Validator::validate($validatorData, $errors);
			
			
			print_r($errors);
			
			die();
			
?>
